#include <stdio.h>
#include <stdlib.h>

struct MatrixElements
{
    double **Arr;
    int n;
    int m;
};
typedef struct MatrixElements *Matrix;
Matrix Initialize()
{
    Matrix T = malloc(sizeof(struct MatrixElements));
    return T;
}
void SetSize(Matrix T, int a, int b)
{
    if (a < 0 || b < 0)
    {
        printf("矩阵太小！\n");
        return;
    }
    T->Arr = malloc(sizeof(double *) * a);
    for (int i = 0; i < a; i++)
        T->Arr[i] = malloc(sizeof(double) * b);
    T->n = a;
    T->m = b;
}
void Print(Matrix T)
{
    int i, j;
    for (i = 0; i < T->n; i++)
    {
        for (j = 0; j < T->m; j++)
            printf("%.0f\t", T->Arr[i][j]);
        printf("\n");
    }
}
void Rotate(Matrix T, int x, int y)
{
}

int main()
{

}